package com.max.xihu.patterns.responsible.validator;

/**
 * @Author: Max
 * @Date: 2020-09-20 15:27
 * @Description:场景模拟
 */
public class validatorClient {

    public static void main(String[] args) {
        //校验处理
        BaseValidator validator = new ParamValidator("每日必抢");
        validator.nextValidator(new RuleValidator())
                .nextValidator(new DataValidator(new Object()));
        //其他业务逻辑处理
    }
}
